/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const nestedRouter = {
  path: '/nested',
  component: Layout,
  redirect: '/nested/menu1/menu1-1',
  name: 'Nested',
  meta: {
    title: '学生',
    icon: 'nested',
    roles: ['student', 'admin', 'helper']
  },
  children: [
    {
      path: 'ViewPlanAndApply',
      component: () => import('@/views/studentAndHelper/ViewPlanAndApply'), // Parent router-view
      name: 'ViewPlanAndApply',
      meta: { title: '查看招聘信息' }
    },
    {
      path: 'RecordWorkContent',
      component: () => import('@/views/studentAndHelper/RecordWorkContent'), // Parent router-view
      name: 'RecordWorkContent',
      meta: { title: '记录工作内容' }
    },
    {
      path: 'RepairApply',
      component: () => import('@/views/studentAndHelper/RepairApply'), // Parent router-view
      name: 'RepairApply',
      meta: { title: '报修申请' }
    }
  ]
}

export default nestedRouter
